package org.dromara.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.vo.VariableAssociationValueDescVo;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 变量对象 variable_association
 *
 * @author Lion Li
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("variable_association")
public class VariableAssociation extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 变量地址
     */
    private String code;

    /**
     * 站点id
     */
    private Integer slaveId;

    /**
     * 变量名称
     */
    private String name;

    /**
     * 变量别名
     */
    private String alias;

    /**
     * 分组id
     */
    private Long groupId;

    /**
     * 值
     */
    private BigDecimal value;

    /**
     * 变量类型1 01类型2 03类型
     */
    private Long variableType;

    /**
     * 标识符 代表这个值是放大还是缩小  1缩小2放大
     */
    private Long identifier;

    /**
     * 倍数
     */
    private Long multiple;

    /**
     * 描述
     */
    private String description;

    /**
     * 排序
     */
    private Long sortNum;

    private String unity;
    private int status;

    private Date updateTime;

    private int source;

    private String pileNumber;//分机号

    private Date lastPing;


    private String ip;

    private Integer port;

    private String valueDescJson;



}
